﻿using System;

namespace LibraryHub.DataAccess.EntityFramework
{
    public class EfLibraryOperation
    {
        public int Id { get; set; }
        public int OperationType { get; set; }
        public DateTime OperationDate { get; set; }

        // Can have various meanings; If OperationType is "user taking book",
        // value will mean for how many days user is taking book.
        public int OperationValue { get; set; }

        // Once Take operation is paired with Return operation, original operation must be Closed.
        public bool OperationClosed { get; set; }
        public int EfUserId { get; set; }
        public int EfBookId { get; set; }

        public virtual EfUser EfUser { get; set; }
        public virtual EfBook EfBook { get; set; }
    }
}